import request from '@/utils/request'



export function submit(data) {
  return request({
    url: 'buss/projectproblem/submit',
    method: 'post',
    data
  })
}

export function resubmit(data) {
  return request({
    url: 'buss/projectproblem/resubmit',
    method: 'post',
    data
  })
}


export function del(ids) {
  return request({
    url: 'buss/projectproblem/delete',
    method: 'post',
    data: ids
  })
}

export function getOne(id) {
  return request.get('buss/projectproblem/getOne?id='+id)
}


export function getTablePage(data) {
  return request.post('buss/projectproblem/paging', data)
}


export function getProblemDept(data2) {
  return request.post('buss/projectproblem/dept?id='+data2)
}


export function exportExcel(data) {
  return request({
    method: 'post',
    url: 'buss/projectproblem/all/export',
    data: data,
    responseType: 'blob'
  })
}


export default {
  submit,
  resubmit,
  getOne,
  del,
  getTablePage,
  getProblemDept,
  exportExcel

}
